﻿using System;
using System.Collections.Generic;
using Suk.Models;

namespace Suk.Interface
{
    public interface IBaseInterface<TEntity> where TEntity : BaseModel
    {
        List<TEntity> FindEntity();
        List<TEntity> FindEntity(TEntity Model);

        List<TEntity> FindEntity(ref int totalCount, int pageIndex = 1, int pageSize = 10);
        List<TEntity> FindEntity(TEntity Model, ref int totalCount, int pageIndex = 1, int pageSize = 10);

        int Insert(TEntity entity);
        int Insert(List<TEntity> entitys);

        int Update(TEntity entity);
        int Update(List<TEntity> entity);

        int Delete(TEntity entity);
        int Delete(List<TEntity> entity);

    }
}
